var util = require('util');
function Person () {
	this.name = 'zhangshan';
	this.sayHello = function sayHello () {
		console.log('hello' + this.name);
	}
	var job;
}

Person.prototype.saySomething = function() {
	console.log('Hello everone, my name is ' + this.name + ', My job is ' + this.job);
}

function Teacher () {
	this.job = 'teacher';
}

util.inherits(Teacher,Person);

var person = new Person();
var teacher = new Teacher();

console.log(person.name);
person.sayHello();
person.saySomething();
console.log(person);

teacher.saySomething();
console.log(teacher);